﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace NetMVC.Web.Domain.Dramas
{
    public class Drama
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int id { get; set; }
        /// <summary>
        /// Gets or sets the product type identifier
        /// </summary>
        public int DramaTypeId { get; set; }

        [Display(Name = "戏剧类别")]
        public DramaType DramaType
        {
            get
            {
                return (DramaType)this.DramaTypeId;
            }
            set
            {
                this.DramaTypeId = (int)value;
            }
        }
        [Display(Name = "戏剧类别测试")]
        public DramaType DramaTypeTest{ get; set; }

        [Display(Name="江湖")]
        public string aaa { get; set; }
        public string bbb { get; set; }
        public string ccc { get; set; }

        public ICollection<DramaItem> DramaItems { get; set; }
    }
}